import apibase from "@/api/apiBase";
import axios from "axios";

//提交投保人信息
export const $groupOrderAdd = (params: any) => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.post({
    url: '/female/groupOrder/add',
    data: params,
    instance,
  });
}

//团单模版地址
export const $getGroup = (params: any) => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.get({
    url: '/female/temp/getGroup',
    data: params,
    instance,
  });
}

//上传被保人信息
export const $groupOrderImport = (params: any,formData:any) => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.post({
    url: '/female/groupOrder/import',
    data: params,
    formData,
    instance,
  });
}

//查看被保人信息
export const $groupOrderValidate = (params: any) => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.get({
    url: '/female/groupOrder/validate',
    data: params,
    instance,
  });
}

//生成团单
export const $groupOrderCreate = (params: any) => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.get({
    url: '/female/groupOrder/create',
    data: params,
    instance,
  });
}

//创建团单录入失败人员导出任务
export const $groupOrderCreateFaliedTask = (params: any) => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.post({
    url: '/female/groupOrder/createFaliedTask',
    data: params,
    instance,
  });
}

//导出团单录入失败人员
export const $groupOrderCreateFaliedPeople = (params: any) => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.get({
    url: '/female/groupOrder/createFaliedPeople',
    data: params,
    instance,
  });
}

//团单录入
export const $groupOrderlist = (params: any) => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.get({
    url: '/female/groupOrder/list',
    data: params,
    instance,
  });
}
//上传凭证
export const $AddVoucher = (params: any) => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.post({
    url: '/female/groupOrderPay/addVoucher',
    data: params,
    instance,
  });
}
//取消团单
export const $groupOrderCancel = (params: any) => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.post({
    url: '/female/groupOrder/cancel',
    data: params,
    instance,
  });
}

//凭证信息
export const $groupOrderPayDetail = (params: any) => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.get({
    url: '/female/groupOrderPay/detail',
    data: params,
    instance,
  });
}

//确认凭证信息
export const $groupOrderPayVerifyPay = (params: any) => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.post({
    url: '/female/groupOrderPay/verifyPay',
    data: params,
    instance,
  });
}

//查看团单下载
export const $groupOrderPeopleList = (params: any) => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.get({
    url: '/female/groupOrder/peopleList',
    data: params,
    instance,
  });
}
//创建导出团单
export const $groupOrderPeople = (params: any) => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.post({
    url: '/female/groupOrder/people',
    data: params,
    instance,
  });
}
//查询下载清单导出进度
export const $groupOrderExportData = (params: any) => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.get({
    url: '/female/groupOrder/exportData',
    data: params,
    instance,
  });
}
//凭证确认列表
export const $groupOrderConfirmList = (params: any) => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.get({
    url: '/female/groupOrder/confirmList',
    data: params,
    instance,
  });
}

//承保导出列表
export const $groupOrderInsuredList = (params: any) => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.get({
    url: '/female/groupOrder/insuredList',
    data: params,
    instance,
  });
}

//承保导出查询
export const $groupOrderInsuredPeopleList = (params: any) => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.get({
    url: '/female/groupOrder/insuredPeopleList',
    data: params,
    instance,
  });
}

//承保导出详情
export const $groupOrderInsuredDetail = (params: any) => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.get({
    url: '/female/groupOrder/insuredDetail',
    data: params,
    instance,
  });
}

//承保导出创建
export const $groupOrderInsuredTask = (params: any) => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.post({
    url: '/female/groupOrder/insuredTask',
    data: params,
    instance,
  });
}

//承保导出查询
export const $groupOrderInsuredPeople = (params: any) => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.get({
    url: '/female/groupOrder/insuredPeople',
    data: params,
    instance,
  });
}

//上传待承保信息
export const $groupOrderImportPeopleData = (params: any,formData:any) => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.post({
    url: '/female/groupOrder/importPeopleData',
    data: params,
    formData,
    instance,
  });
}

//创建承保导入任务
export const $groupOrderImportPeopleTask = (params: any) => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.post({
    url: '/female/groupOrder/importPeopleTask',
    data: params,
    instance,
  });
}
//批量承保确认上传结果
export const $insuredValidate = (params: any) => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.get({
    url: '/female/insured/validate',
    data: params,
    instance,
  });
}

//批量承保查询
export const $insuredDoImport = (params: any) => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.post({
    url: '/female/insured/doImport',
    data: params,
    instance,
  });
}

//创建承保失败人员导出
export const $insuredInsuredInsuredFaliedTask = (params: any) => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.post({
    url: '/female/insured/insuredFaliedTask',
    data: params,
    instance,
  });
}

//查询承保失败人员导出
export const $insuredInsuredFailedPeople = (params: any) => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.get({
    url: '/female/insured/insuredFailedPeople',
    data: params,
    instance,
  });
}



//被保人单独承包
export const $groupOrderPeopleInsure = (params: any) => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.post({
    url: '/female/groupOrderPeople/insure',
    data: params,
    instance,
  });
}

//低保团单模版下载
export const $getBasicGroup = (params: any) => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.get({
    url: '/female/temp/getBasicGroup',
    data: params,
    instance,
  });
}

//低保提交
export const $groupOrderAddBasic = (params: any) => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.post({
    url: '/female/groupOrder/addBasic',
    data: params,
    instance,
  });
}


//低保团单列表
export const $groupOrdeBasicOrderList = (params: any) => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.get({
    url: '/female/groupOrder/basicOrderList',
    data: params,
    instance,
  });
}

//低保团单详情列表
export const $groupOrdebasicPeopleList = (params: any) => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.get({
    url: '/female/groupOrder/basicPeopleList',
    data: params,
    instance,
  });
}

//去年下载清单
export const $groupOrdeInsured2023List = (params: any) => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.get({
    url: '/female/groupOrder/insured2023List',
    data: params,
    instance,
  });
}

//去年低保下载清单
export const $groupOrdeInsuredlow2023List = (params: any) => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.get({
    url: '/female/groupOrder/insured2023BasicList',
    data: params,
    instance,
  });
}




